import 'package:flutter/material.dart';

class ExpandedComp extends StatelessWidget {
  const ExpandedComp({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
        width: double.infinity,
        height: 130,
        decoration: const BoxDecoration(
          color: Colors.red,
        ),
        child: Row(
          children: [
            Expanded(
              flex: 1,
              child: Container(
                color: Colors.purple,
              ),
            ),
            Expanded(
              flex: 2,
              child: Container(
                color: Colors.yellow,
              ),
            ),
            Expanded(
              flex: 1,
              child: Container(
                color: Colors.green,
              ),
            ),
          ],
        ));
  }
}
